<!DOCTYPE html>
<html>
 
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<script language="JavaScript">
		function mousedown(event) {
			var e = window.event;
			var obj = e.srcElement;
			obj.style.color = 'blue';
		}
 
		function mouseup(event) {
			var e = window.event;
			var obj = e.srcElement;
			obj.style.color = 'red';
		}
	</script>
 
	<body>
		<p id="p1" style="color: green;" onmousedown="mousedown()" onmouseup="mouseup()">编程辞典网</p>
	</body>
</html>